package vader.exception;

import com.fancy.cc.common.api.BaseErrorInfoInterface;
import com.fancy.cc.common.exception.ApiException;

/**
 * 断言处理类，用于抛出各种API异常
 *
 * @author macro
 * @date 2020/2/27
 */
public class Asserts {
    public static void fail(String message) {
        throw new com.fancy.cc.common.exception.ApiException(message);
    }

    public static void fail(BaseErrorInfoInterface errorCode) {
        throw new ApiException(errorCode);
    }
}
